package com.syg.controller;


import com.syg.Animal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * spi controller
 *
 * @author ThinkPad
 * @version 1.0
 * @date 2021/9/4 15:55
 */
@RestController
@RequestMapping("spi")
public class SpiController {

    @Autowired
    private Animal animal;

    @RequestMapping("test")
    public String test(){
        animal.hello();
        return animal.getClass().getName();
    }
}
